package com.fullertontech.framework.generator;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;
/**
 * 注解条件过滤
 * @author caojipian
 *
 */
public class GeneratorConditional implements Condition{

	@Override
	public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
		String os = System.getProperty("os.name");
		if(os.toLowerCase().startsWith("win")||os.toLowerCase().startsWith("mac")){ 
			return true;
		}
		return false;
	}
}
